var xmlDoc=getXmlDoc();

// 取得程式編號(依系統編號)
function fc_get_wkf_prg_data(obj1,sys_no){
     varURL="";
     if(sys_no==undefined){
       varURL="/SWD/pages/pub/find_wkf_prg.jsp";
     }
     else{
       varURL="/SWD/pages/pub/find_wkf_prg.jsp?sys_no=" + sys_no;
     }
     ret=window.showModalDialog(varURL,"_blank","status:no");
     if(ret==null){return null;}
     val=ret.split(',,,,,');
     obj1.value=val[0];
     return val[0];
}


// 取得表格名稱(依系統編號)
function fc_get_table_name(obj1,sys_no){
     varURL="";
     if(sys_no==undefined){
       varURL="/SWD/pages/pub/find_wkf_table.jsp";
}
     else{
       varURL="/SWD/pages/pub/find_wkf_table.jsp?sys_no=" + sys_no;
     }
     ret=window.showModalDialog(varURL,"_blank","status:no");
     if(ret==null){return null;}
     val=ret.split(',,,,,');
     obj1.value=val[0];
     return val[0];
}


// 取得系統代號
function fc_get_sys_data(obj1){
     ret=window.showModalDialog("/SWD/pages/pub/find_wkf_sys.jsp","_blank","status:no");

     if(ret==null){return;}
     val=ret.split(',,,,,');
     obj1.value=val[0];
     return val[0];
}
// 取得系統代號2
function fc_get_sys_data2(obj1,obj2){
     ret=window.showModalDialog("/SWD/pages/pub/find_wkf_sys.jsp","_blank","status:no");

     if(ret==null){return;}
     val=ret.split(',,,,,');
     obj1.value=val[0];
     obj2.value=val[1];
     return val[0];
}
// 取得Frame No 代號
function fc_get_frame_no(obj1){
   ret=window.showModalDialog("/SWD/pages/pub/find_wkf_frame.jsp","_blank",
             "status:no;dialogHeight:500px;dialogLeft:center;dialogTop:center;dialogWidth:500px");
   if(ret==null){return;}
   obj1.value=ret;
   return ret;
}
// 取得群組資料
function fc_get_group_data(obj1){
   ret=window.showModalDialog("/SWD/pages/pub/find_wkf_user_by_group.jsp","_blank",
           "status:no;dialogHeight:550px;dialogLeft:center;dialogTop:center;dialogWidth:500px");
   if(ret==null){return;}
   val=ret.split(',');
   obj1.value=val[0];
}

// 取得資料庫編號
function fc_get_db_file_data(obj1){
     ret=window.showModalDialog("/SWD/pages/pub/find_db_file.jsp","_blank",
            "status:no;dialogHeight:550px;dialogLeft:center;dialogTop:center;dialogWidth:500px");

     if(ret==null){return;}
     obj1.value=ret;
     return ret;
}
